//Source file: H:\\temp\\generated\\multidiagram\\IEditorFactory.java

package com.cea.papyrus.multidiagram.extension;

import org.eclipse.ui.IEditorPart;


/**
 * Editor factory.
 * A factory is responsible to create an editor for the specified root object.
 */
public interface IEditorFactory 
{
   
   /**
    * REturn true if the editor can edit the root object.
    * @param root
    * @return boolean
    */
   public boolean isEditorFor(Object root);
   
   /**
    * @param sharedObjects
    * @param root
    * @return multidiagram.NestedDiagram
    */
   public IEditorPart createEditorFor(MultiDiagramSharedObjects sharedObjects, Object root);
}
